import request from '@/utils/request';
import { xlsxHost } from '@/utils/utils';
function paramsStringHandler(params: any) {
  var paramsString = '?'
  for (var k in params) {
    paramsString += `${k}=${params[k]}&`
  }
  return paramsString.substr(0,paramsString.length-1)
}

export async function queryRule(params?: any) {
  return request('/app-admin/outsourcing/activityPlay/HistoryList', {
    params,
  });

}


export async function userPlayExport(params: {
  uid:string
} ) {

  return Promise.resolve(xlsxHost+'/app-admin/outsourcing/activityPlay/HistoryExport'+paramsStringHandler(params))
}
